@import './variables.scss';
@import './mixin.scss';
@import './transition.scss';
@import './element-ui.scss';
@import './sidebar.scss';

body {
	height: 100%;
	-moz-osx-font-smoothing: grayscale;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif;
}

label {
	font-weight: 700;
}

html {
	height: 100%;
	box-sizing: border-box;
}

#app {
	height: 100%;
	overflow: hidden;
}

*,
*:before,
*:after {
	box-sizing: inherit;
}

a:focus,
a:active {
	outline: none;
}

a,
a:focus,
a:hover {
	cursor: pointer;
	color: inherit;
	text-decoration: none;
}

div:focus {
	outline: none;
}

.clearfix {
	&:after {
		visibility: hidden;
		display: block;
		font-size: 0;
		content: " ";
		clear: both;
		height: 0;
	}
}

// 全局样式
.app-main {
	position: relative;
	min-height: 85vh;
	min-width: 1000px;
	height: calc(100% - 140px);
	background: #fff;
	box-shadow: 0 0 3px 4px #dde6f9;
	border-radius: 5px;
	margin: 15px;
}

.view-clamp {
	display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
	overflow: hidden;
}

.text-price {
	&::before {
		content: "¥";
		font-size: 80%;
	}
}

.text_align_right {
	text-align: right;
}

.text_align_left {
	text-align: left;
}
.margin_bottom_30 {
	margin-bottom: 30px;
}
.margin_top_30 {
	margin-top: 30px;
}

.flex {
	display: flex;
}
.flex-center{
	display: flex;
	align-items: center;
	justify-content: center;
}
.flex-between {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.flex_1 {
	flex: 1;
}

.nowrap {
	white-space: nowrap !important;
	overflow: hidden;
	text-overflow: ellipsis;
}
.none {
  	display: none !important;
}
p{
  margin: 0;
}
.footer {
	margin-top: 20px;
}

.vue-directive-image-previewer {
  	z-index: 99999;
}

.upload-card-box {
	height: 80px;
	width: 80px;
	& > .el-upload {
		cursor: pointer;
		position: relative;
		overflow: hidden;
		&.el-upload--picture-card {
			width: 100%;
			height: 100%;
			display: flex;
		}
	}
	.el-upload--picture-card {
		border: 1px solid $subMenuActiveText;
	}

	.avatar-uploader-icon {
		width: 100%;
		height: 100%;
		line-height:80px;
	}
}

// 通用样式
.searchBox {
	display: flex;
	align-items: center;
	&_item {
		width: 200px;
		margin-left: 20px;
	}
  }
